﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using YYTea.MOdel.Model;
using YYTea.ORM;
using YYTea.Services.IServices;

namespace YYTea.Miljy.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class OrderController : ControllerBase
    {

        private readonly IOrder _order;
        public OrderController( IOrder order)
        {
            this._order = order;
        }

        //[HttpGet]
        //public async Task<List<Order>> GetOrdersAll()
        //{
        //    var getAll = await _order.GetAllOrder();
        //    return getAll;
        //}
        //[HttpGet]
        //public async Task<Order> GetOrderById(Guid id)
        //{
        //    var getById = await _order.GetOrderById(id);
        //    return getById;
        //}
    }
}
